using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using System.Collections;

namespace OgilvyOne.BLL
{
    public class Link
    {
        // Methods
        public bool DeleteLink(int id)
        {
            return OgilvyOne.DALFactory.Link.Create().DeleteLink(id);
        }

        public bool DeleteMenuLink(int id)
        {
            return OgilvyOne.DALFactory.Link.Create().DeleteMenuLink(id);
        }

        public IList GetLink()
        {
            return OgilvyOne.DALFactory.Link.Create().GetLink();
        }

        public LinkInfo GetLinkInfo(int id)
        {
            return OgilvyOne.DALFactory.Link.Create().GetLinkInfo(id);
        }

        public IList getMenuLink(int menu_id)
        {
            return OgilvyOne.DALFactory.Link.Create().getMenuLink(menu_id);
        }

        public LinkInfo getMenuLink_Data(int menu_id)
        {
            return OgilvyOne.DALFactory.Link.Create().getMenuLink_Data(menu_id);
        }

        public bool InsertLink(LinkInfo info)
        {
            return OgilvyOne.DALFactory.Link.Create().InsertLink(info);
        }

        public bool InsertMenuLink(LinkInfo link)
        {
            return OgilvyOne.DALFactory.Link.Create().InsertMenuLink(link);
        }

        public bool UpdateLink(LinkInfo info)
        {
            return OgilvyOne.DALFactory.Link.Create().UpdateLink(info);
        }

        public bool UpdateMenuLink(LinkInfo linkinfo)
        {
            return OgilvyOne.DALFactory.Link.Create().UpdateMenuLink(linkinfo);
        }

    }
}
